<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivityJoinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('activity_join', function (Blueprint $table) {
            $table->increments('id');
            $table ->integer('user_id')->default(0)->comment('关联用户');
            $table ->integer('activity_id')->default(0)->comment('活动id');
            $table->string('phone')->default(0)->comment('参加者手机号码');
            $table ->string('order_num')->nullable()->comment('订单编号');
            $table->integer('status')->default(0)->comment('状态 0：未报名 1：已报名');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
